<?php
    if(isset($arr_Duplicate))
    {
        $this->data =  $arr_Duplicate;
    }
?>
<fieldset>
    <legend><h3>Thêm menu mới</h3></legend>
    <br />
    <a href ="/admin/menus/">Trở về trang Index</a>
    <br />
    <?php echo $this->Form->create("Menu"); ?>
    <?php echo $this->element('message'); ?>
    <div class="boxSearch">
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">Tên menu <span style="color: red">*</span></span>
            <span class="input_mexu">
                <?php echo $this->Form->input( "tenmenu", array(
                                                    "label" => false,
                                                    "type"  => "text",
                                                    "style" =>  "width:200px;",
                                                    "placeholder" => "Tên menu"
                                            ) ); ?>
            </span>
        </div>
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">Menu cha <span style="color: red">*</span></span>
            <span class="input_mexu">
                <?php
                    echo $this->Form->input('menucha', array(
                                'options' => $arr_Menu0,
                                'label' => false,
                                'style' =>  'width:200px;',
                                'empty' => '-- Chọn menu cha --'
                            ));
                ?>
            </span>
        </div>
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">Url</span>
            <span class="input_mexu">
                 <?php echo $this->Form->input( "url", array(
                                                    "label" => false,
                                                    "type"  => "text",
                                                    "style" =>  "width:200px;",
                                                    "placeholder" => "Url"
                                            ) ); ?>
            </span>
        </div>
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">Thứ tự</span>
            <span class="input_mexu">
                 <?php echo $this->Form->input( "lop", array(
                                                    "label" => false,
                                                    "type"  => "text",
                                                    "style" =>  "width:200px;",
                                                    "placeholder" => "Thứ tự"
                                            ) ); ?>
            </span>
        </div>
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">Mô tả</span>
            <span class="input_mexu">
                 <?php echo $this->Form->input( "mota", array(
                                                    "label" => false,
                                                    "type"  => "textarea",
                                                    "escape"  => false,
                                                    "rows" => "5",
                                                    "cols" => "22"
                                            ) ); ?>
            </span>
        </div>
        <div class="row_mexu">
            <span style="width: 110px;" class="txt_mexu">&nbsp;&nbsp;</span>
            <span class="input_mexu">
                 <input type="submit" class="button" value="Thêm"/>
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <?php echo $this->Form->end(); ?>
</fieldset>